package com.hyt.it.ogt.ks.config;

import lombok.Data;

/**
 * @author 刘恒活
 * @since 2021/5/21 17:45
 */
@Data
public class KsBizRunTimeException extends RuntimeException {
    private Integer code;
    private String message;
    private String descInfo;
    private Throwable exceptionCause;

    public KsBizRunTimeException() {
    }

    public KsBizRunTimeException(Integer code) {
        this.code = code;
    }

    public KsBizRunTimeException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public KsBizRunTimeException(Throwable cause) {
        this.exceptionCause = cause;
    }

    /**
     * Construct a <code>NestedRuntimeException</code> with the specified detail
     * message and nested exception. 构造子
     *
     * @param msg   the detail message
     * @param cause the nested exception
     */
    public KsBizRunTimeException(String msg, Throwable cause) {
        super(msg, cause);
        this.exceptionCause = cause;
    }

}
